package hello;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author lok1105
 */
public class HelloWorld {
    private String greeting;
    public HelloWorld (String greeting) {
        setGreeting(greeting);
    }
    public String toString() {
        return greeting + "!";
    }

    public String getGreeting() {
        return greeting;
    }

    public void setGreeting(String greeting) {
        this.greeting = greeting;
    }
    
}
